import { dyjHttp as http } from '@/services/http';
import type { ListResult } from '@/types/api/common';
import type { AccountListItem, AccountListParamsDto } from '@/types/api/crm-dyj/user';

/** 获取用户列表 */
export const getList = (params: AccountListParamsDto) => http<ListResult<AccountListItem>>({ url: '/api/admin/user/account', method: 'get', params });
/** 延长会员 */
export const userExtend = (data: { mobile: string, end_time: number}) => http<any>({ url: '/api/admin/user/extend', method: 'put', data });
